package com.ruibang.glass.iso.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruibang.glass.common.utils.validateannotation.NotBlank;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-06-05  15:35
 * @Description: TODO:文件类别实体
 * @Version: 1.0
 */
@Data
@TableName("g_iso_file_category")
public class FileCategory extends BaseEntity {
    @TableId(value = "file_category_id", type = IdType.ASSIGN_ID)
    private String fileCategoryId;

    @ApiModelProperty(value = "文件类别名称")
    @NotBlank(message = "文件类别名称不可为空")
    private String name;

    @ApiModelProperty(value = "文件类别代码")
    @NotBlank(message = "文件类别代码不可为空")
    private String code;

    @ApiModelProperty(value = "级别(字典: file_category_level)")
    @NotBlank(message = "级别不可为空")
    private String level;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "是否删除：1：是 0：否")
    @TableLogic
    private String isDelete;
}
